package org.xiaoyu.rpc;

import org.xiaoyu.rpc.common.url.URL;
import org.xiaoyu.rpc.remoting.packet.Invocation;
import org.xiaoyu.rpc.remoting.packet.Result;

/**
 * Created By Have
 * 2021/7/12 16:42
 */
public interface Invoker<T> {
    Class<?> getInterface();

    Result invoke(Invocation invocation);

    void destroy();

    boolean isAvailable();

    URL getUrl();

}
